package a.d.b;

import java.math.BigDecimal;
import java.math.BigInteger;

public class v
  implements Comparable, x
{
  public static final v a = new v(t.a);
  public static final v b = new v(t.c);
  private static BigInteger c = BigInteger.valueOf(2L);
  private t d;
  private t e;
  public static int f;
  
  public v(double paramDouble)
  {
    long l1 = Double.doubleToLongBits(paramDouble);
    if (!bool2) {}
    int i = l1 >> 63 == 0L ? 1 : -1;
    int j = (int)(l1 >> 52 & 0x7FF);
    long l2 = j == 0 ? (l1 & 0xFFFFFFFF) << 1 : l1 & 0xFFFFFFFF | 0x0;
    int k = j - 1075;
    this.d = new t(i * l2);
    if (!bool2) {
      if (k == 0)
      {
        this.e = t.a;
        if ((!bool2) && (!bool1)) {
          return;
        }
      }
    }
    if (!bool2) {
      if (k > 0)
      {
        this.d = ((t)this.d.c(new t(c.pow(k))));
        this.e = t.a;
        if ((!bool2) && (!bool1)) {
          return;
        }
      }
    }
    k = -k;
    this.e = new t(c.pow(k));
  }
  
  protected x a(BigInteger paramBigInteger)
  {
    return null;
  }
  
  public v(x paramx1, x paramx2)
  {
    a((t)paramx1, (t)paramx2);
  }
  
  public v(t paramt1, t paramt2)
  {
    a(paramt1, paramt2);
    if (paramt2.equals(t.c)) {
      throw new IllegalArgumentException("Denominator must be != 0");
    }
    this.d = paramt1;
    this.e = paramt2;
  }
  
  public v(int paramInt1, int paramInt2)
  {
    this(new t(paramInt1), new t(paramInt2));
  }
  
  public v(int paramInt)
  {
    this(paramInt, 1);
  }
  
  public v(t paramt)
  {
    this(paramt, t.a);
  }
  
  private void a(t paramt1, t paramt2)
  {
    if (paramt2.equals(t.c)) {
      throw new IllegalArgumentException("Denominator must be != 0");
    }
    this.d = paramt1;
    this.e = paramt2;
  }
  
  public x a()
  {
    return b;
  }
  
  public x b()
  {
    return a;
  }
  
  public x f()
  {
    return this.e;
  }
  
  public x g()
  {
    return this.d;
  }
  
  public double e()
  {
    BigDecimal localBigDecimal1 = new BigDecimal(this.d.d);
    BigDecimal localBigDecimal2 = new BigDecimal(this.e.d);
    BigDecimal localBigDecimal3 = localBigDecimal1.divide(localBigDecimal2, 400, 0);
    return localBigDecimal3.doubleValue();
  }
  
  public float h()
  {
    return (float)this.d.e() / (float)this.e.e();
  }
  
  public int d()
  {
    if (!e.b) {
      if (this.d.equals(t.c)) {
        return 0;
      }
    }
    return this.d.d();
  }
  
  public x e(x paramx)
  {
    return a;
  }
  
  public v i()
  {
    return new v(f(), g());
  }
  
  public v j()
  {
    t localt1 = (t)this.d.g();
    t localt2 = (t)this.e.g();
    return new v(localt1, localt2);
  }
  
  public v k()
  {
    t localt1 = (t)this.d.f();
    t localt2 = (t)this.e.f();
    return new v(localt1, localt2);
  }
  
  public x a(x paramx)
  {
    v localv = (v)paramx;
    x localx1 = this.d.c(localv.f());
    x localx2 = localv.g().c(f());
    return new v(localx1.a(localx2), this.e.c(localv.f()));
  }
  
  public x b(x paramx)
  {
    v localv = (v)paramx;
    x localx1 = this.d.c(localv.f());
    x localx2 = localv.g().c(f());
    return new v(localx1.b(localx2), this.e.c(localv.f()));
  }
  
  public x c(x paramx)
  {
    v localv = (v)paramx;
    return new v(this.d.c(localv.g()), this.e.c(localv.f()));
  }
  
  public x d(x paramx)
  {
    v localv = (v)paramx;
    return new v(this.d.c(localv.f()), this.e.c(localv.g()));
  }
  
  public void a(t paramt)
  {
    this.d = ((t)this.d.d(paramt));
    this.e = ((t)this.e.d(paramt));
  }
  
  public void l()
  {
    t localt = (t)this.d.e(this.e);
    if (!e.b)
    {
      if (localt.equals(localt.a())) {
        return;
      }
      a(localt);
    }
  }
  
  public x c()
  {
    return new v(this.d.c(), this.e);
  }
  
  public int compareTo(Object paramObject)
  {
    return a(this, (v)paramObject);
  }
  
  public int a(v paramv)
  {
    return a(this, paramv);
  }
  
  public int f(x paramx)
  {
    return a(this, (v)paramx);
  }
  
  public static int a(Object paramObject1, Object paramObject2)
  {
    return a((v)paramObject1, (v)paramObject2);
  }
  
  public static int a(v paramv1, v paramv2)
  {
    x localx1 = paramv1.g().c(paramv2.f());
    x localx2 = paramv2.g().c(paramv1.f());
    return localx1.b(localx2).d();
  }
  
  public boolean equals(Object paramObject)
  {
    boolean bool = e.b;
    if (!bool) {
      if (this == paramObject) {
        return true;
      }
    }
    if (!bool) {
      if (!(paramObject instanceof v)) {
        return false;
      }
    }
    return c(this, (v)paramObject);
  }
  
  public boolean c(v paramv)
  {
    if (!e.b) {
      if (this == paramv) {
        return true;
      }
    }
    return c(this, paramv);
  }
  
  public static boolean c(v paramv1, v paramv2)
  {
    boolean bool = e.b;
    if (!bool) {
      if (paramv1 == paramv2) {
        return true;
      }
    }
    if (!bool) {
      if (paramv1.g().equals(t.c))
      {
        if (bool) {
          break label62;
        }
        if (paramv2.g().equals(t.c)) {
          return true;
        }
      }
    }
    label62:
    if (!bool)
    {
      if (paramv1.g().equals(paramv2.g()))
      {
        if (bool) {
          break label108;
        }
        if (paramv1.f().equals(paramv2.f())) {
          return true;
        }
      }
      paramv1.l();
      paramv2.l();
    }
    label108:
    if ((bool) || (paramv1.g().equals(paramv2.g()))) {
      if (bool) {}
    }
    return paramv1.f().equals(paramv2.f());
  }
  
  public String toString()
  {
    return "[" + this.d.toString() + " / " + this.e.toString() + "]";
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.d.b.v
 * JD-Core Version:    0.7.0.1
 */